Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence ENOENT errors and sync networks if no match is found #85

Merged
merged 2 commits into from
Mar 1, 2021

Conversation

Luap99
Copy link
Contributor

@Luap99 Luap99 commented Feb 20, 2021

Do not print ENOENT errors when loading networks
The files has been removed there is no need to log a error
we can simply ignore it.

Reload networks if none is found
In the podman CI tests are consistently flaking with CNI network not
found ... I think the problem is that ocicni updates based on fsnotify
and this can be slower than the podman calls.
As a solution the networks should be synced if no match is found. If
it is still not found afterwards return the network not found error.

I tested this in the podman containers/podman#9449 and I didn't saw the described flakes in the remote integration tests.

ENOENT errors are no longer logged while loading networks
The network list is now synced if no config is found to prevent races where the networks were not found

Paul Holzinger added 2 commits February 20, 2021 14:31
The files has been removed there is no need to log a error
we can simply ignore it.

Signed-off-by: Paul Holzinger <[email protected]>
In the podman CI tests are consistently flaking with CNI network not
found ... I think the problem is that ocicni updates based on fsnotify
and this can be slower than the podman calls.
As a solution the networks should be synced if no match is found. If
it is still not found afterwards return the network not found error.

Signed-off-by: Paul Holzinger <[email protected]>
@openshift-ci-robot openshift-ci-robot added dco-signoff: yes Indicates the PR's author has DCO signed all their commits. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Feb 20, 2021
@Luap99
Copy link
Contributor Author

Luap99 commented Feb 20, 2021

@baude PTAL. This will fix the remote integration test network flakes.

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Luap99
Copy link
Contributor Author

Luap99 commented Feb 22, 2021

This does not only happens in the podman CI other users are able to reproduce, see containers/podman#9451 (comment)

@openshift-ci-robot openshift-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Feb 22, 2021
@jwhonce
Copy link

jwhonce commented Mar 1, 2021

/lgtm

@openshift-ci-robot
Copy link

@jwhonce: changing LGTM is restricted to collaborators

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@rhatdan
Copy link
Contributor

rhatdan commented Mar 1, 2021

/approve
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 1, 2021
@rhatdan rhatdan added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 1, 2021
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: Luap99, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit f3789d9 into cri-o:master Mar 1, 2021
@Luap99 Luap99 deleted the silence-enoent-errors branch March 1, 2021 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants